home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _20AC07EB8CDB45CFBCE48920FE083FD8 < prev    next >
Encoding:
Text File  |  2004-07-20  |  6.0 KB  |  251 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $SPECPOW
  6. // $REFL_STRENGTH
  7. // $BFUNC
  8. // $CULLING
  9.  
  10. Shader()
  11. {
  12.     ShaderQuality(5)
  13.     Pass()
  14.     {
  15.         //lighting()
  16.  
  17.         VertexShader("CarG_CmCd_Bump_ps20.vsh")
  18.         Pixelshader("CarG_CmCd_Bump_ps20.psh")
  19.  
  20.         !include("__tex1.mtt")
  21.         !include("__Dirt.mtt")
  22.         !include("__CloudsVS.mtt")
  23.         !include("__TerrainColormapVS.mtt")
  24. //        !include("__TerrainColormapSmallVS.mtt")
  25. //        !include("__DynamicCubeMap.mtt")
  26.         !include("__CubeMap.mtt")
  27.         !include("__DirtNormalsMap.mtt")
  28.  
  29.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  30.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  31.  
  32.         !include(BFUNC)
  33.     }
  34.     sortweight("depth_sorted")
  35.     Cull(CULLING)
  36. }
  37.  
  38.  
  39. shader()
  40. {
  41.     ShaderQuality(3)
  42.     pass()
  43.     {
  44.         //Lighting()
  45.         Pixelshader("CarG_CmCd_ps14.psh")
  46.         Vertexshader("CarG_CmCd_ps14.vsh")
  47.  
  48.         !include("__tex1.mtt")
  49.         !include("__Dirt.mtt")
  50.         !include("__TerrainColormapVS.mtt")
  51. //        !include("__TerrainColormapSmallVS.mtt")
  52.         !include("__CloudsVS.mtt")
  53. //        !include("__DynamicCubeMap.mtt")
  54.         !include("__CubeMap.mtt")
  55.  
  56.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  57.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  58.  
  59.         !include(BFUNC)
  60.     }
  61.     sortweight("depth_sorted")
  62.     Cull(CULLING)
  63. }
  64.  
  65. shader()
  66. {
  67.     ShaderQuality(2)
  68.     pass()
  69.     {
  70.         //Lighting()
  71.         Pixelshader("CarG_Cm_ps11.psh")
  72.         Vertexshader("CarG_Cm_ps11.vsh")
  73.  
  74.         !include("__tex1.mtt")
  75.         !include("__Dirt.mtt")
  76.         !include("__TerrainColormapSmallVS.mtt")
  77. //        !include("__DynamicCubeMap.mtt")
  78.         !include("__CubeMap.mtt")
  79.  
  80.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  81.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  82.  
  83.         !include(BFUNC)
  84.     }
  85.     sortweight("depth_sorted")
  86.     Cull(CULLING)
  87. }
  88.  
  89. shader()
  90. {
  91.     ShaderQuality(1)
  92.     pass()
  93.     {
  94.         //Lighting()
  95.         Pixelshader("CarG_ps11.psh")
  96.         Vertexshader("CarG_ps11.vsh")
  97.  
  98.         !include("__tex1.mtt")
  99.         !include("__Dirt.mtt")
  100.         !include("__TerrainColormapSmallVS.mtt")
  101.  
  102.         TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
  103.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
  104.  
  105.         !include(BFUNC)
  106.     }
  107.     sortweight("depth_sorted")
  108.     Cull(CULLING)
  109. }
  110.  
  111. //=========================== GF2 ======================================
  112. shader()
  113. {
  114.  
  115.     ShaderQuality(2)
  116.     pass()
  117.     {
  118.         Lighting()
  119.         tmu()
  120.         {
  121.             Texture()
  122.             {
  123.                 Mapchannel(0)
  124.                 Image(TEXTURE1)
  125.                 !include(TEX1OPTIONSFILE)
  126.             }
  127.             ColorOp("mul", "current", "texture", "current")
  128.             AlphaOp("arg1", "texture_a", "current", "current")
  129.         }
  130.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  131.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  132.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  133.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  134.         SpecularPow(SPECPOW)
  135.         BlendFunc("one", "inv_src_alpha")
  136.                
  137.     }
  138.     pass()
  139.     {
  140.         Lighting()
  141.         tmu()
  142.         {
  143.             Texture()
  144.             {
  145.                 Mapchannel(0)
  146.                 Image(DIRT_GF2)
  147.                 !include(DIRTOPTIONSFILE)
  148.             }
  149.             ColorOp("mul", "tfactor", "current", "current")
  150.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  151.         }
  152.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  153.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  154.         
  155.         AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
  156.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  157.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  158.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  159.         SpecularPow(0.0)
  160.         BlendFunc("src_alpha", "inv_src_alpha")
  161.     }
  162.  
  163.  
  164.     pass()
  165.     {
  166.         Lighting()
  167.         tmu()
  168.         {
  169.             TexGen("planar")
  170.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  171.             texture()
  172.             {
  173.                 Image(%colortexturesmall)
  174.                 addressfunc("clamp", "clamp", "clamp")
  175.             }
  176.             ColorOp("arg1", "tfactor", "current", "diffuse_a")
  177.             AlphaOp("add", "texture_a", "tfactor_a", "current")
  178.         }
  179.  
  180.         tmu()
  181.         {
  182.             ColorOp("arg1", "current", "texture", "current")
  183.             AlphaOp("add", "current", "diffuse_a", "current")
  184.         }         
  185.  
  186.         tfactor(0.0, 0.0, 0.0, %daycolor_a)
  187.  
  188.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  189.         DiffuseColor(0.0, 0.0, 0.0, 0.3)
  190.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  191.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  192.         SpecularPow(0.0)
  193.         
  194.         BlendFunc("inv_src_alpha", "src_alpha")        
  195.  
  196.         
  197.     }                    
  198.     lightpass()
  199.     !include("spot_spotmap.mtt")    
  200.     
  201.     sortweight("depth_sorted")
  202.     Cull(CULLING)
  203. }    
  204. //=======================================================
  205. /*
  206. shader()
  207. {
  208.     ShaderQuality(0)
  209.     pass()
  210.     {
  211.         Lighting()
  212.         Pixelshader("Common_specular.psh")
  213.         Vertexshader("Common_specular.vsh")
  214.         !include("__tex1.mtt")
  215.         !include(BFUNC)        
  216.     }
  217.     sortweight("depth_sorted")
  218.     Cull(CULLING)
  219. }
  220. */
  221. shader()
  222. {
  223.     ShaderQuality(0)
  224.     pass()
  225.     {
  226.         Lighting()
  227.         tmu()
  228.         {
  229.             Texture()
  230.             {
  231.                 Mapchannel(0)
  232.                 Image(TEXTURE1)
  233.                 !include(TEX1OPTIONSFILE)
  234.             }
  235.             ColorOp("mul", "current", "texture", "current")
  236.             AlphaOp("arg1", "texture_a", "current", "current")
  237.         }
  238.   
  239.  
  240.         !include("__LightningColorsSpecGF2.mtt")  
  241.         !include(BFUNC)
  242.     }
  243. //    lightpass()
  244. //    !include("spot_spotmap.mtt")
  245.         
  246.     sortweight("depth_sorted")
  247.     Cull(CULLING)
  248. }
  249.  
  250.  
  251.